package com.ikas.ai.server.module.system.model.vo;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 生成按钮权限类
 */
public class PermissionVo {

    /**
     * 上级菜单id
     */
    @NotNull(message = "上级菜单id必填")
    private Long menuId;

    /**
     * 父级菜单权限标志
     */
    @NotEmpty(message = "请输入父级菜单权限")
    private String parentPermission;

    /**
     * 选择按钮标题
     */
    private String permissionTitles;

    /**
     * 是否新增 0：是 1：否  选否,则删除原来旧的
     */
    @NotNull(message = "请选择是否新增")
    private Integer additional;

    /**
     * 所选权限标志
     */
    @NotEmpty(message = "请选择需要生成的按钮权限")
    private List<String> permission;


    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public String getParentPermission() {
        return parentPermission;
    }

    public void setParentPermission(String parentPermission) {
        this.parentPermission = parentPermission;
    }

    public String getPermissionTitles() {
        return permissionTitles;
    }

    public void setPermissionTitles(String permissionTitles) {
        this.permissionTitles = permissionTitles;
    }

    public Integer getAdditional() {
        return additional;
    }

    public void setAdditional(Integer additional) {
        this.additional = additional;
    }

    public List<String> getPermission() {
        return permission;
    }

    public void setPermission(List<String> permission) {
        this.permission = permission;
    }

    @Override
    public String toString() {
        return "PermissionVo{" +
                "menuId=" + menuId +
                ", parentPermission='" + parentPermission + '\'' +
                ", permissionTitles='" + permissionTitles + '\'' +
                ", additional=" + additional +
                ", permission=" + permission +
                '}';
    }
}
